package org.zephyr.project.orm.mapper;

/**
 * @author yu.zhang
 * @date 2019-09-26
 */

import org.zephyr.orm.annotation.Insert;
import org.zephyr.orm.annotation.Mapper;
import org.zephyr.orm.annotation.Param;
import org.zephyr.orm.annotation.Select;

@Mapper
public interface OrderDataMapper {
    @Insert("insert into order_data(order_id,pin) values(?,?)")
    void insert(OrderDataPO record);

    @Select("select * from order_data where order_id=?")
    OrderDataPO selectByOrderId(@Param("orderId") long orderId);
}
